import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

//批量代付业务回执报文查询
export const apiUrlConfigQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/batchCollectionAndPayment/BatchPaymentReceiptQuery/search`,
}

//批量代付业务回执报文查询明細表查询
export const apiUrlConfigQueryDetailTabSearch = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/batchCollectionAndPayment/BatchPaymentReceiptQuery/detailTabSearch`,
}

//批量代付业务回执报文查询应答明細表查询
export const apiUrlConfigQueryReplyDetailTab = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/batchCollectionAndPayment/BatchPaymentReceiptQuery/replyDetailTabSearch`,
}

// 批量代付业务回执报文查询明细
export function batchPaymentReceiptQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/batchCollectionAndPayment/BatchPaymentReceiptQuery/detail`,
    method: 'get',
    params:{retId:data.retId}

  })
}

// 批量代付业务回执报文查询原交易明细
export function batchPaymentReceiptQueryOriDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/batchCollectionAndPayment/BatchPaymentReceiptQuery/oriDetail`,
    method: 'get',
    params:{id:data.id}
  })
}





// 批量代付业务回执报文录入
export const apiUrlConfigEntry = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/batchCollectionAndPayment/BatchPaymentReceiptEntry/search`,
}

// 批量代付业务回执报文录入明细table
export const apiUrlConfigEntryDetail = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/batchCollectionAndPayment/BatchPaymentReceiptEntry/detailSearch`,
}


// 批量代付业务回执报文录入明细
export function batchPaymentReceiptEntryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/batchCollectionAndPayment/BatchPaymentReceiptEntry/detail`,
    method: 'get',
    params:{id:data.id}
  })
}

// 批量代付业务回执报文录入
export function batchPaymentReceiptEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/batchCollectionAndPayment/BatchPaymentReceiptEntry/save`,
    method: 'post',
    data:data
  })
}
